package com.mrdeer.uaa.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Blob;
import java.time.LocalDateTime;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/4 0004 9:54
 */
@Data
@TableName("oauth_code")
public class OAuthCode implements Serializable {
    private static final long serialVersionUID = 4554200142537175763L;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 授权码
     */
    @TableId(value = "code", type = IdType.ID_WORKER)
    private String code;

    /**
     * 认证信息
     */
    private Blob authentication;
}
